package com.lanchetech.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分享赚佣金/嗨币详细
 *
 * @TableName share_detaileds
 */
@Data
@ApiModel(value = "com.lanchetech.entity.ShareDetailed")
public class ShareDetailed implements Serializable {

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    private Long id;

    /**
     * 分享赚ID
     */
    @ApiModelProperty(value = "分享赚ID")
    private Long shareActivityId;

    /**
     * 子订单ID
     */
    @ApiModelProperty(value = "子订单ID")
    private Long orderSkuId;

    /**
     * 支付金额
     */
    @ApiModelProperty(value = "支付金额")
    private BigDecimal amount;

    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量")
    private Integer count;

    /**
     * 分享赚绑定商品ID
     */
    @ApiModelProperty(value = "分享赚绑定商品ID")
    private Long shareActivitySpuId;

    /**
     * 受益人(佣金/嗨币 获得者)
     */
    @ApiModelProperty(value = "受益人(佣金/嗨币 获得者)")
    private Long beneficiaryUserId;

    /**
     * 提供者(下级人员)
     */
    @ApiModelProperty(value = "提供者(下级人员)")
    private Long providerUserId;

    /**
     * 佣金金额
     */
    @ApiModelProperty(value = "佣金金额")
    private BigDecimal commissionRebate;

    /**
     * 嗨币金额
     */
    @ApiModelProperty(value = "嗨币金额")
    private BigDecimal hiCoinRebate;

    /**
     * 到账时间
     */
    @ApiModelProperty(value = "到账时间")
    private Date receiptTime;

    /**
     * 是否冻结(false:未冻结  true:已冻结)
     */
    @ApiModelProperty(value = "是否冻结(false:未冻结  true:已冻结)")
    private Boolean freeze;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updated;

    /**
     * 佣金比例
     */
    @ApiModelProperty(value = "佣金比例")
    private BigDecimal commissionScale;

    /**
     * 嗨币比例
     */
    @ApiModelProperty(value = "嗨币比例")
    private BigDecimal hiCoinScale;

    /**
     * 回扣类型 (true:固定金额   false:百分比%)
     */
    @ApiModelProperty(value = "回扣类型 (true:固定金额   false:百分比%)")
    private Boolean shareActivitySpuType;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date created;
    /**
     * 收益类型
     */
    @ApiModelProperty(value = "101佣金,102嗨币")
    private int type;
    /**
     * 商家/门店
     */
    @ApiModelProperty(value = "商家/门店")
    private long tenantId;
    /**
     * 是否已发放
     */
    @ApiModelProperty(value = "是否已发放")
    private boolean issued;

    private static final long serialVersionUID = 1L;
}